package li.nibble.twittertido.fragment;

import li.nibble.twittertido.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AnimationUtils;
import android.widget.ViewFlipper;

public class TweetSectionFragment extends Fragment {

	ViewFlipper flipper;


	public TweetSectionFragment() {
	}

	public static final String ARG_SECTION_NUMBER = "section_number";

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.tweets, container, false);

		flipper = (ViewFlipper) view.findViewById(R.id.flipper);
		

		return view;
	}

	public void setAnimationUp() {
		flipper.setInAnimation(AnimationUtils.loadAnimation(getActivity()
				.getApplicationContext(), R.anim.push_up_in));
		flipper.setOutAnimation(AnimationUtils.loadAnimation(getActivity()
				.getApplicationContext(), R.anim.push_up_out));
	}

	public void setAnimationDown() {
		flipper.setInAnimation(AnimationUtils.loadAnimation(getActivity()
				.getApplicationContext(), R.anim.push_down_out));
		flipper.setOutAnimation(AnimationUtils.loadAnimation(getActivity()
				.getApplicationContext(), R.anim.push_down_in));
	}

	

}